<?php

namespace app\dao\portal;

use app\dao\BaseDao;
use app\model\portal\FacadeStudyHelp;

class PortalStudyHelpDao extends BaseDao
{

    public function index($where)
    {
        return $this->getModel()->withoutField('update_time,create_time')->where('website_id', $where['website_id'])->find();
    }

    public function create(array $where)
    {
        unset($where['id']);
        return $this->getModel()->create($where);
    }

    public function updateDao(array $where)
    {
        return $this->getModel()->update($where);

    }

    protected function setModel(): string
    {
        // TODO: Implement setModel() method.
        return FacadeStudyHelp::class;
    }
}